
import React from 'react';

import { matchPath } from 'umi';


export default class extends React.Component {

  componentDidMount = ()=>{
    //匹配路由是否符合规则
    var currentUrl = '/users/123'
    const match = matchPath(
      { path: "/users/:id" },
      currentUrl,
    );
    console.log(match)
  }

  render(){
    return (
      <div>测试页面</div>
    )
  }
}